From 920c18b2b91f62c439883292f78c05d5a5d708ad Mon Sep 17 00:00:00 2001 From: Zheng Zhu Date: Fri, 17 Sep 2004 19:10:03 +0000 Subject: [PATCH] set default language variant according to the http-accept-language header --- includes/User.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/User.php b/includes/User.php index 19b51a5004..12d62cade5 100644 --- a/includes/User.php +++ b/includes/User.php @@ -164,6 +164,10 @@ class User { foreach ( $defOpt as $oname => $val ) { $this->mOptions[$oname] = $val; } + /* so that new user will have a default + language variant set using info from the http header + */ + $this->setOption('variant', $wgLang->getPreferredLanguage()); } /** -- 2.20.1